package cn.nexd.location.indoor;

import cn.nexd.location.indoor.core.mathematician.LocationEngineResult;

public class NexdIndoorLocationResult {
    private float locationResultX;
    private float locationResultY;
    private long locationResultBuildingId;
    private long locationResultFloorId;

    public NexdIndoorLocationResult(float locationResultX, float locationResultY, long locationResultBuildingId, long locationResultFloorId) {
        this.locationResultX = locationResultX;
        this.locationResultY = locationResultY;
        this.locationResultBuildingId = locationResultBuildingId;
        this.locationResultFloorId = locationResultFloorId;
    }

    public NexdIndoorLocationResult(LocationEngineResult locationResult) {
        this.locationResultX = locationResult.getX();
        this.locationResultY = locationResult.getY();
        this.locationResultBuildingId = locationResult.getBuildingId();
        this.locationResultFloorId = locationResult.getFloorId();
    }

    public float getLocationResultX() {
        return locationResultX;
    }

    public float getLocationResultY() {
        return locationResultY;
    }

    public long getLocationResultBuildingId() {
        return locationResultBuildingId;
    }

    public long getLocationResultFloorId() {
        return locationResultFloorId;
    }

    @Override
    public String toString() {
        return "LocationResult{" +
                "locationResultX=" + locationResultX +
                ", locationResultY=" + locationResultY +
                ", locationResultBuildingId=" + locationResultBuildingId +
                ", locationResultFloorId=" + locationResultFloorId +
                '}';
    }
}
